package de.uni.bremen.estudent.lbs.service;


import android.app.IntentService;
import android.content.Intent;
import android.os.IBinder;

import de.uni.bremen.estudent.lbs.tasks.GetFoodAsyncTask;


/**
 * Service, which tries to update the mensa-meal table via an asynctask.
 * 
 * @author bahlfeld
 * @version 1.0 30.01.2012
 */
public final class MensaUpdateService extends IntentService {

    public MensaUpdateService() {
        super("MealUpdateService");
        // TODO Auto-generated constructor stub
    }

    @Override
    public IBinder onBind(final Intent intent) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    protected void onHandleIntent(final Intent intent) {
        new GetFoodAsyncTask(getApplicationContext()).execute();
    }
}
